package com.itheima.account.pojo;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

@Component
public class Cat {
    @Autowired
    private Mouse mouse;

    public void catchMouse(){
       mouse.play();
    }
}
